package com.david.cms.service;

import com.david.basic.model.Pager;
import com.david.cms.model.Member;

public interface IMemberService {
	/**
	 * 添加会员
	 * @param member
	 * @return
	 */
	public void addMember(Member member) throws Exception;
	
	/**
	 * 通过id得到会员
	 * 
	 */
	public Member searchMemberById(int id) throws Exception;
	
	/**
	 * 会员登录
	 * 
	 */
	public Member searchMember(String loginName,String password) throws Exception;
	/**
	 * 开发商查询
	 * public List<Member> searchMemberByPage() throws Exception;
	 */
	public Pager<Member> searchMemberByPage(Pager page) throws Exception;
	
	/**
	 * 删除会员
	 */
	public void deleteMember(int id) throws Exception;
	
	/**
	 * 验证用户名是否已经被注册
	 */
	public Member searchMemberByLoginName(String loginName);
	/**
	 * 验证用户名是否已经被注册
	 */
	public void updateMember(Member member);
}
